<?= $this->Html->css('slideshow.min', null, array('inline'=>false)) ?>
<?= $this->Html->script('slideshow.min', array('inline'=>false)) ?>

<? if(
    preg_match('/android/i', env('HTTP_USER_AGENT')) &&
    ! $dontShowAndroid
): ?>
<div class="android-notice-overlay"></div>
<div class="android-notice">
    <p><?= $this->Html->image('android.png?h=150') ?></p>
    <p>Postoji Android Aplikacija za Vaš telefon.</p>
    <p class="play-store">
        Da li želite da je preuzmete?<br>
        <?= $this->Html->link('DA', PLAY_STORE_APP_URL, array(
            'target' => '_blank',
            'class'  => 'yes'
        )) ?><?= $this->Html->link('NE', array(
            'controller' => 'app',
            'action'     => 'no_android',
            urlencode($this->request->here)
        ), array(
            'class' => 'no'
        )) ?>
    </p>
</div>
<? endif ?>

<? if (! empty($slideshow)): ?>
<div id="slideshow">
<ul>
    <? foreach ($slideshow as $slide): ?>
    <li>
        <a href="<?= $slide['link'] ?>">
            <h1><?= $slide['title'] ?></h1>
            <?= $this->Html->image($slide['image'] . '?w=600', array(
                'width'  => 600,
                'height' => 450
            )) ?>
        </a>
    </li>
    <? endforeach ?>
</ul>
</div>
<? endif ?>
<p>&nbsp;</p>
<h1>O nama</h1>
<div class="user-page"><?= $this->element('pages/o_nama') ?></div>
<div style="clear:both;height:2px"></div>
